import React, { Component } from 'react'

export default class Reader extends Component {
    
    componentDidMount() {
        const pdf = localStorage.getItem('doc')?.replace('./','');
        window.open('http://www.exam.com/' + pdf, 'PDF');
    }
    render() {
        const pdf = localStorage.getItem('doc');
      
        
        return (
            <div>
                  <iframe src={'http://www.exam.com'+pdf} frameBorder="0" width='100%' height="600px"></iframe>
            </div>
        )
    }
}
